<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      /* text-align: center; */
    }
    .box1 {
      /* display: inline-block; */
      /* float: left; */
      width: 100px;
      height: 100px;
      /* margin: 50px; */
      background: pink;
    }
    .box2 {
      width: 200px;
      height: 200px;
      /* margin: 50px; */
      background: skyblue;
      /* overflow: hidden; */
    }
    .pic {
      /* float: left; */
    }
    span {
      vertical-align: middle;
    }
    img {
      vertical-align: middle;
    }
  </style>
</head>
<body>
  <div class="box1">1</div>
  <div class="box2">2</div>
  <span>行内元素</span>
  <!-- <div>123</div> -->
  <img src="images/01.jpg" width="100" class="pic" alt="">
  <img src="images/02.jpg" width="100" alt="">
  <!-- <input type="text" value="请输入用户名"> -->
</body>
</html>